﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000A7F RID: 2687
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class LobbyJoinCsReq : IMessage<LobbyJoinCsReq>, IMessage, IEquatable<LobbyJoinCsReq>, IDeepCloneable<LobbyJoinCsReq>, IBufferMessage
	{
		// Token: 0x170021EF RID: 8687
		// (get) Token: 0x06007840 RID: 30784 RVA: 0x001414DD File Offset: 0x0013F6DD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<LobbyJoinCsReq> Parser
		{
			get
			{
				return LobbyJoinCsReq._parser;
			}
		}

		// Token: 0x170021F0 RID: 8688
		// (get) Token: 0x06007841 RID: 30785 RVA: 0x001414E4 File Offset: 0x0013F6E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return LobbyJoinCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170021F1 RID: 8689
		// (get) Token: 0x06007842 RID: 30786 RVA: 0x001414F6 File Offset: 0x0013F6F6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return LobbyJoinCsReq.Descriptor;
			}
		}

		// Token: 0x06007843 RID: 30787 RVA: 0x001414FD File Offset: 0x0013F6FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LobbyJoinCsReq()
		{
		}

		// Token: 0x06007844 RID: 30788 RVA: 0x00141508 File Offset: 0x0013F708
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LobbyJoinCsReq(LobbyJoinCsReq other) : this()
		{
			this.roomId_ = other.roomId_;
			this.lobbyExtraInfo_ = ((other.lobbyExtraInfo_ != null) ? other.lobbyExtraInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06007845 RID: 30789 RVA: 0x00141554 File Offset: 0x0013F754
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LobbyJoinCsReq Clone()
		{
			return new LobbyJoinCsReq(this);
		}

		// Token: 0x170021F2 RID: 8690
		// (get) Token: 0x06007846 RID: 30790 RVA: 0x0014155C File Offset: 0x0013F75C
		// (set) Token: 0x06007847 RID: 30791 RVA: 0x00141564 File Offset: 0x0013F764
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ulong RoomId
		{
			get
			{
				return this.roomId_;
			}
			set
			{
				this.roomId_ = value;
			}
		}

		// Token: 0x170021F3 RID: 8691
		// (get) Token: 0x06007848 RID: 30792 RVA: 0x0014156D File Offset: 0x0013F76D
		// (set) Token: 0x06007849 RID: 30793 RVA: 0x00141575 File Offset: 0x0013F775
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayerExtraInfo LobbyExtraInfo
		{
			get
			{
				return this.lobbyExtraInfo_;
			}
			set
			{
				this.lobbyExtraInfo_ = value;
			}
		}

		// Token: 0x0600784A RID: 30794 RVA: 0x0014157E File Offset: 0x0013F77E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as LobbyJoinCsReq);
		}

		// Token: 0x0600784B RID: 30795 RVA: 0x0014158C File Offset: 0x0013F78C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(LobbyJoinCsReq other)
		{
			return other != null && (other == this || (this.RoomId == other.RoomId && object.Equals(this.LobbyExtraInfo, other.LobbyExtraInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600784C RID: 30796 RVA: 0x001415DC File Offset: 0x0013F7DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.RoomId != 0UL)
			{
				num ^= this.RoomId.GetHashCode();
			}
			if (this.lobbyExtraInfo_ != null)
			{
				num ^= this.LobbyExtraInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600784D RID: 30797 RVA: 0x00141631 File Offset: 0x0013F831
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600784E RID: 30798 RVA: 0x00141639 File Offset: 0x0013F839
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600784F RID: 30799 RVA: 0x00141644 File Offset: 0x0013F844
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.lobbyExtraInfo_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.LobbyExtraInfo);
			}
			if (this.RoomId != 0UL)
			{
				output.WriteRawTag(96);
				output.WriteUInt64(this.RoomId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06007850 RID: 30800 RVA: 0x001416A0 File Offset: 0x0013F8A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.RoomId != 0UL)
			{
				num += 1 + CodedOutputStream.ComputeUInt64Size(this.RoomId);
			}
			if (this.lobbyExtraInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.LobbyExtraInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06007851 RID: 30801 RVA: 0x001416F8 File Offset: 0x0013F8F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(LobbyJoinCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.RoomId != 0UL)
			{
				this.RoomId = other.RoomId;
			}
			if (other.lobbyExtraInfo_ != null)
			{
				if (this.lobbyExtraInfo_ == null)
				{
					this.LobbyExtraInfo = new PlayerExtraInfo();
				}
				this.LobbyExtraInfo.MergeFrom(other.LobbyExtraInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06007852 RID: 30802 RVA: 0x00141760 File Offset: 0x0013F960
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06007853 RID: 30803 RVA: 0x0014176C File Offset: 0x0013F96C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 58U)
				{
					if (num != 96U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.RoomId = input.ReadUInt64();
					}
				}
				else
				{
					if (this.lobbyExtraInfo_ == null)
					{
						this.LobbyExtraInfo = new PlayerExtraInfo();
					}
					input.ReadMessage(this.LobbyExtraInfo);
				}
			}
		}

		// Token: 0x04002E04 RID: 11780
		private static readonly MessageParser<LobbyJoinCsReq> _parser = new MessageParser<LobbyJoinCsReq>(() => new LobbyJoinCsReq());

		// Token: 0x04002E05 RID: 11781
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002E06 RID: 11782
		public const int RoomIdFieldNumber = 12;

		// Token: 0x04002E07 RID: 11783
		private ulong roomId_;

		// Token: 0x04002E08 RID: 11784
		public const int LobbyExtraInfoFieldNumber = 7;

		// Token: 0x04002E09 RID: 11785
		private PlayerExtraInfo lobbyExtraInfo_;
	}
}
